package com.tm.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.ToString;

/**
 * @program: springbootlx
 * @description:
 * @author: 小仝
 * @create: 2023-04-11 20:28
 **/

@Data
@ToString
public class Student {
    @TableId(type = IdType.AUTO)
    private Integer sid;
    private String sname;
    private Integer age ;
    private Integer cid;
    @TableField(exist = false)   // 表示数据库不存在该字段
    private Class1 class1;
}
